package com.elink.enginerring.param.dao;

import java.util.List;

import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.elink.enginerring.param.entity.Param;

public interface ParamMapper {
    int deleteByPrimaryKey(String keyword);

    int insert(Param record);

    int insertSelective(Param record);

    Param selectByPrimaryKey(String keyword);

    int updateByPrimaryKeySelective(Param record);

    int updateByPrimaryKey(Param record);

    @Select("select value from param where keyword=#{0}")
    @ResultType(String.class)
	String selectCountByKey(String key);
    
	List<Param> selectOfPage(int pageNo, int pageSize,
			@org.apache.ibatis.annotations.Param("des") String des,
			@org.apache.ibatis.annotations.Param("keyword") String keyword);
	
	int selectCount(@org.apache.ibatis.annotations.Param("des")String des,
			@org.apache.ibatis.annotations.Param("keyword") String keyword);
	
	@Select("select value from param where keyword=#{0}")
	@ResultType(String.class)
	String selectValByKey(String keyword);
}